import request from '@/utils/request'
// 统计总人数和头像
export function communityData(data) {
	return request({
		url: '/mini/page/community/data',
		method: 'post',
		data,
	})
}
// 已参加活动列表
export function communityActivityList(data) {
	return request({
		url: '/mini/page/community/activity/list',
		method: 'post',
		data,
	})
}
// 发布/保存草稿
export function communitySend(data) {
	return request({
		url: '/mini/page/community/article/send',
		method: 'post',
		data,
	})
}
// 列表
export function communityList(data) {
	return request({
		url: '/mini/page/community/article/list',
		method: 'post',
		data,
	})
}
// 详情
export function communityInfo(data) {
	return request({
		url: '/mini/page/community/article/info',
		method: 'post',
		data,
	})
}
// 点赞/收藏
export function communityChangeLike(data) {
	return request({
		url: '/mini/article/change/like',
		method: 'post',
		data,
	})
}




// 帖子发布评论
export function articleReply(data) {
	return request({
		url: '/mini/article/reply/send',
		method: 'post',
		data,
	})
}
// 帖子下的评论列表
export function articleList(data) {
	return request({
		url: '/mini/page/community/article/reply/list',
		method: 'post',
		data,
	})
}
// 帖子下的评论详情
export function articleInfo(data) {
	return request({
		url: '/mini/page/community/article/reply/info',
		method: 'post',
		data,
	})
}
// 回复评论
export function article(data) {
	return request({
		url: '/mini/article/reply/reply',
		method: 'post',
		data,
	})
}
// 回复评论列表
export function articleReplyList(data) {
	return request({
		url: '/mini/page/community/reply/reply/list',
		method: 'post',
		data,
	})
}

// 我的社区 四个列表
export function likeArticleList(data) {
	return request({
		url: data.url,
		method: 'post',
		data,
	})
}
// 我的社区 上下架
export function changeSelf(data) {
	return request({
		url: '/mini/article/self/change/self',
		method: 'post',
		data,
	})
}
// 我的社区 评论开启关闭
export function changeReply(data) {
	return request({
		url: '/mini/article/self/change/reply',
		method: 'post',
		data,
	})
}
// 我的社区 草稿箱
export function articleDraftList(data) {
	return request({
		url: '/mini/article/self/draft/list',
		method: 'post',
		data,
	})
}
// 我的社区 详情
export function articleDraftInfo(data) {
	return request({
		url: '/mini/article/self/draft/info',
		method: 'post',
		data,
	})
}
// 我的社区 删除
export function articleDraftRemove(data) {
	return request({
		url: '/mini/article/self/draft/remove',
		method: 'post',
		data,
	})
}
